package com.wanke.constant;

public enum MqttTopicConstants {
    MEAS_UPLOAD("data/measurement/"),MEAS_CHANGE("EigOut/SM_/"), HEARTBEAT_CLIENT("heartbeat/client/"),HEARTBEAT_SERVER("heartbeat/server/"), RECOLLECT_ORDER("order/recollect/"),
    RECOLLECT("data/measurement/recollect/");

    MqttTopicConstants(String topic) {
        this.topic = topic;
    }

    private String topic;

    public String getTopic() {
        return topic;
    }

    public String value(Long stationCode) {
        return this.getTopic() + stationCode;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }
}
